import { RouteRecordRaw } from 'vue-router'

export default [
   {
      path: '/admin',
      name: 'admin',
      component: () => import('@/layouts/admin.vue'),
      meta: { auth: true },
      children: [
         {
            name: 'admin.user',
            path: '/admin/user',
            component: () => import('@/views/admin/user.vue')
         },
         {
            name: 'admin.index',
            path: '/admin/index',
            component: () => import('@/views/admin/index.vue')
         },
         {
            name: 'error',
            path: '/admin/error',
            component: () => import('@/views/admin/error.vue')
         }
      ]
   }
] as RouteRecordRaw[]
